Action hook 'deleted_post_{$post->post_type}'
in WP Core File wp-includes/post.php at line 3632
Description
Fires immediately after a post is deleted from the database. The dynamic portion of the hook name, `$post->post_type`, refers to the post type slug.
Occurrences
Filename |
Line Number |
wp-includes/post.php |
3632 |
Parameters
Type |
Name |
Description |
int |
$post_id |
Post ID. |
WP_Post |
$post |
Post object. |
PHP Doc
/**
* Fires immediately after a post is deleted from the database.
*
* The dynamic portion of the hook name, `$post->post_type`, refers to
* the post type slug.
*
* @since 6.6.0
*
* @param int $post_id Post ID.
* @param WP_Post $post Post object.
*/